//
//  LYDropDownView.h
//  SelectCity
//
//  Created by liuyan on 2019/3/20.
//  Copyright © 2019年 liuyan. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LYDropView.h"

NS_ASSUME_NONNULL_BEGIN

@protocol LYDropDownViewDelegate <NSObject>
@optional
- (void)dropDownViewTapBack;
@end

@interface LYDropDownView : UIView

- (instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)array normalColor:(UIColor *)normalColor selectColor:(UIColor *)selectColor normalImage:(NSString *)normalImage selectImage:(NSString *)selectImage dropViews:(NSArray<UIView *>*)views;

@property (nonatomic, strong) UIView *headerView;
@property (nonatomic, strong) UIView *dropBackview;
@property (nonatomic, assign) NSInteger currentIndex;
@property (nonatomic, weak) id<LYDropDownViewDelegate>delegate;

- (void)hiddenDropDownView;
- (void)hiddenDropDownViewIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
